package com.ruoyi.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 购物车对象 ord_cart
 * 
 * @author admin
 * @date 2023-10-12
 */
public class OrdCart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long cartId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 数量 */
    @Excel(name = "数量")
    private Long cartNumber;

    /** 加入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cartTime;

    /** 商家id */
    @Excel(name = "商家id")
    private Long businessId;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** 付款金额 */
    @Excel(name = "付款金额")
    private Long payment;

    /** 优惠劵id */
    @Excel(name = "优惠劵id")
    private Long preferential;

    /** 商品金额 */
    @Excel(name = "商品金额")
    private Long orderMoney;

    public void setCartId(Long cartId) 
    {
        this.cartId = cartId;
    }

    public Long getCartId() 
    {
        return cartId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setCartNumber(Long cartNumber) 
    {
        this.cartNumber = cartNumber;
    }

    public Long getCartNumber() 
    {
        return cartNumber;
    }
    public void setCartTime(Date cartTime) 
    {
        this.cartTime = cartTime;
    }

    public Date getCartTime() 
    {
        return cartTime;
    }
    public void setBusinessId(Long businessId) 
    {
        this.businessId = businessId;
    }

    public Long getBusinessId() 
    {
        return businessId;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }
    public void setPayment(Long payment) 
    {
        this.payment = payment;
    }

    public Long getPayment() 
    {
        return payment;
    }
    public void setPreferential(Long preferential) 
    {
        this.preferential = preferential;
    }

    public Long getPreferential() 
    {
        return preferential;
    }
    public void setOrderMoney(Long orderMoney) 
    {
        this.orderMoney = orderMoney;
    }

    public Long getOrderMoney() 
    {
        return orderMoney;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cartId", getCartId())
            .append("userId", getUserId())
            .append("productId", getProductId())
            .append("cartNumber", getCartNumber())
            .append("cartTime", getCartTime())
            .append("businessId", getBusinessId())
            .append("modifyTime", getModifyTime())
            .append("payment", getPayment())
            .append("preferential", getPreferential())
            .append("orderMoney", getOrderMoney())
            .toString();
    }
}
